<div class="ui-tabs dashboard-tabs clearfix">
<ul class="clearfix ui-tabs-nav">
	<?php $class = ($this->request->params['controller'] == 'user_profiles') ? 'ui-tabs-selected ui-state-active' : null; ?>
	<li class="ui-state-default <?php echo $class ; ?>">	<?php echo $this->Html->link(__l('Settings'), array('controller' => 'user_profiles', 'action' => 'edit', 'admin' => false), array('title' => __l('Settings')));?></li>
	<?php if(!$this->Auth->user('fb_user_id') && !$this->Auth->user('twitter_user_id') && !$this->Auth->user('is_openid_register') && !$this->Auth->user('is_yahoo_register') && !$this->Auth->user('is_gmail_register')):?>
		<?php $class = ($this->request->params['controller'] == 'users' && $this->request->params['action'] == 'change_password') ? 'ui-tabs-selected ui-state-active' : null; ?>
		<li class="ui-state-default <?php echo $class ; ?>"><?php echo $this->Html->link(__l('Change Password'), array('controller' => 'users', 'action' => 'change_password'), array('title' => __l('Change password')));?></li>
	<?php endif;?>
	<?php $class = ($this->request->params['controller'] == 'user_permission_preferences') ? 'ui-tabs-selected ui-state-active' : null; ?>
	<li class="ui-state-default <?php echo $class ; ?>">	<?php echo $this->Html->link(__l('Notifications'), array('controller' => 'user_permission_preferences', 'action' => 'edit', 'admin' => false), array('title' => __l('Notifications')));?></li>
	<?php $class = ($this->request->params['controller'] == 'users' && $this->request->params['action']=='connect') ? 'ui-tabs-selected ui-state-active' : null; ?>
	<?php $class = ($this->request->params['controller'] == 'transactions') ? 'ui-tabs-selected ui-state-active' : null; ?>
	 <li class="ui-state-default <?php echo $class ; ?>">	<?php echo $this->Html->link(__l('Transactions'), array('controller' => 'transactions', 'action' => 'index', 'admin' => false), array('title' => __l('Transactions')));?></li>
	 <?php $class = ($this->request->params['controller'] == 'users' && $this->request->params['action'] =='add_to_wallet') ? 'ui-tabs-selected ui-state-active' : null; ?>
	 <li class="ui-state-default <?php echo $class ; ?>">	<?php echo $this->Html->link(__l('Add amount to wallet'), array('controller' => 'users', 'action' => 'add_to_wallet', 'admin' => false), array('title' => __l('Add amount to wallet')));?></li>
	 <?php if (Configure::read('user.is_user_can_with_draw_amount')): ?>
	  <?php $class = ($this->request->params['controller'] == 'user_cash_withdrawals' ) ? 'ui-tabs-selected ui-state-active' : null; ?>
	 <li class="ui-state-default <?php echo $class ; ?>">	<?php echo $this->Html->link(__l('Withdraw Fund Request'), array('controller' => 'user_cash_withdrawals', 'action' => 'index', 'admin' => false), array('title' => __l('Withdraw Fund Request')));?></li>
	 <?php endif; ?>
		</ul>
		</div>